﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OopDemo
{
    /// <summary>
    /// 四边形
    /// </summary>
    public abstract class Quadrilatera: IShape
    {

        protected Quadrilatera()
        {
            Width = 12;

            Height = 4;
        }

        /// <summary>
        /// 宽
        /// </summary>
        public int Width { get; set; }

        /// <summary>
        /// 高
        /// </summary>
        public int Height { get; set; }

        public void Draw()
        {
            DrawSelf();
        }

        public abstract void DrawSelf();
    }
}
